package com.couldsail.takeaway.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("categories")
public class Categories {
    @TableId(value = "id")
    private String id;
    @TableField("name")
    private String name;
    private String description;
    private Integer sort;
    private String icon;
    @TableField("shop_id")
    private String shopId;
    @TableField("created_at")
    private DateTimeFormat createdAt;
    @TableField("updated_at")
    private DateTimeFormat updatedAt;
}
